package com.chinasoft.tw.service.zhoushiting;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ZstTrue implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public ZstTrue() {
        this.name = "周诗婷";
        wordList.add("下课了 ！");
        wordList.add("天气很好！");
        wordList.add("明天放假 ！");
    }
    @Override
    public Info getTrueWord() {
        Info info = new Info(name, wordList.get(random.nextInt(wordList.size())));
        return info;
    }
}
